﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ETA_WPF_Main.ChildWindows
{
    /// <summary>
    /// Interaction logic for SeasonManagerWindow.xaml
    /// </summary>
    public partial class SeasonManagerWindow : Window
    {
        public SeasonManagerWindow()
        {
            InitializeComponent();
        }

        private void New_Season_Click(object sender, RoutedEventArgs e)
        {
            //DateTime dt = DateTime.Today;
            //foreach (var item in _examSeasons)
            //{
            //    if (item.EndSeason.CompareTo(dt) > 0)
            //    {
            //        dt = item.EndSeason.AddDays(1);
            //    }
            //}
            //ExamSeason newES = new ExamSeason("Descrição", dt, dt.AddDays(20));
            //_examSeasonsDataSource.Add(newES);
        }

        private void Remove_Season_Click(object sender, RoutedEventArgs e)
        {
            //ExamSeason selected = _dgv_ExamSeasonManagement.CurrentRow.DataBoundItem as ExamSeason;
            //_examSeasonsDataSource.Remove(selected);
            //selected.Remove();
        }

        private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }
    }
}
